
package com.java.main;

import com.java.base.basePeople;
import com.java.etds.extendsBasePeople;

/*
 * 
 */
public class extendsMain {
	public static void main(String[] args){
		 
		extds();
		extds21();
		extds2();
	}

	public static void extds(){
		System.out.println("******extds***********");
		extendsBasePeople extds=new extendsBasePeople();
		extds.hungry();
		extds.feedfruit();
		System.out.println("******************");
	}
	@SuppressWarnings("null")
	public static void extds21(){
		System.out.println("**********extds21********");
		extendsBasePeople extds = new extendsBasePeople();
		//extendsBasePeople extds = null;  //report:java.lang.NullPointerException
		extds.hungry();
		extds.feedfruit();
		System.out.println("******************");
	}
	
	
	public static void extds2(){
		System.out.println("********extds**********");
		basePeople bp=new basePeople();
		bp.hungry();
		System.out.println("******************");
		
	}
}
